package cn.mjnxin.charge.model.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
/**
 * demo_file:系统文件
 * create by :clg  2023/8/29
 *
 * @mbg.generated
 */
public class DemoFile implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="ID")
    private Long id;

    /**
     * 关键词1
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="关键词1")
    private String key1;

    /**
     * 关键词2
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="关键词2")
    private String key2;

    /**
     * 文件大小（M）
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="文件大小（M）")
    private BigDecimal fileSize;

    /**
     * 上传路径
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="上传路径")
    private String uploadPath;

    /**
     * 原文件名
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="原文件名")
    private String originalFilename;

    /**
     * 上传文件名
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="上传文件名")
    private String uploadFilename;

    /**
     * 上传配置ID
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="上传配置ID")
    private Integer uploadConfigId;

    /**
     * 扩展名
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="扩展名")
    private String extension;

    /**
     * UUID
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="UUID")
    private String uuid;

    /**
     * 状态（1正常  2冻结）
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="状态（1正常  2冻结）")
    private String fileStatus;

    /**
     * 权限（1公开 2自查）
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="权限（1公开 2自查）")
    private String permission;

    /**
     * 下载次数
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="下载次数")
    private Integer downloadNum;

    /**
     * 查看次数
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="查看次数")
    private Integer lookupNum;

    /**
     * 上传者
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="上传者")
    private String uploadBy;

    /**
     * 上传时间
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="上传时间")
    private Date uploadTime;

    /**
     * 删除者
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="删除者")
    private String deleteBy;

    /**
     * 删除时间
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="删除时间")
    private Date deleteTime;

    /**
     * 备注
     *
     * @mbg.generated
     */
    @ApiModelProperty(notes="备注")
    private String remark;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getKey1() {
        return key1;
    }

    public void setKey1(String key1) {
        this.key1 = key1 == null ? null : key1.trim();
    }

    public String getKey2() {
        return key2;
    }

    public void setKey2(String key2) {
        this.key2 = key2 == null ? null : key2.trim();
    }

    public BigDecimal getFileSize() {
        return fileSize;
    }

    public void setFileSize(BigDecimal fileSize) {
        this.fileSize = fileSize;
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath == null ? null : uploadPath.trim();
    }

    public String getOriginalFilename() {
        return originalFilename;
    }

    public void setOriginalFilename(String originalFilename) {
        this.originalFilename = originalFilename == null ? null : originalFilename.trim();
    }

    public String getUploadFilename() {
        return uploadFilename;
    }

    public void setUploadFilename(String uploadFilename) {
        this.uploadFilename = uploadFilename == null ? null : uploadFilename.trim();
    }

    public Integer getUploadConfigId() {
        return uploadConfigId;
    }

    public void setUploadConfigId(Integer uploadConfigId) {
        this.uploadConfigId = uploadConfigId;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension == null ? null : extension.trim();
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid == null ? null : uuid.trim();
    }

    public String getFileStatus() {
        return fileStatus;
    }

    public void setFileStatus(String fileStatus) {
        this.fileStatus = fileStatus == null ? null : fileStatus.trim();
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission == null ? null : permission.trim();
    }

    public Integer getDownloadNum() {
        return downloadNum;
    }

    public void setDownloadNum(Integer downloadNum) {
        this.downloadNum = downloadNum;
    }

    public Integer getLookupNum() {
        return lookupNum;
    }

    public void setLookupNum(Integer lookupNum) {
        this.lookupNum = lookupNum;
    }

    public String getUploadBy() {
        return uploadBy;
    }

    public void setUploadBy(String uploadBy) {
        this.uploadBy = uploadBy == null ? null : uploadBy.trim();
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }

    public String getDeleteBy() {
        return deleteBy;
    }

    public void setDeleteBy(String deleteBy) {
        this.deleteBy = deleteBy == null ? null : deleteBy.trim();
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", key1=").append(key1);
        sb.append(", key2=").append(key2);
        sb.append(", fileSize=").append(fileSize);
        sb.append(", uploadPath=").append(uploadPath);
        sb.append(", originalFilename=").append(originalFilename);
        sb.append(", uploadFilename=").append(uploadFilename);
        sb.append(", uploadConfigId=").append(uploadConfigId);
        sb.append(", extension=").append(extension);
        sb.append(", uuid=").append(uuid);
        sb.append(", fileStatus=").append(fileStatus);
        sb.append(", permission=").append(permission);
        sb.append(", downloadNum=").append(downloadNum);
        sb.append(", lookupNum=").append(lookupNum);
        sb.append(", uploadBy=").append(uploadBy);
        sb.append(", uploadTime=").append(uploadTime);
        sb.append(", deleteBy=").append(deleteBy);
        sb.append(", deleteTime=").append(deleteTime);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DemoFile other = (DemoFile) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getKey1() == null ? other.getKey1() == null : this.getKey1().equals(other.getKey1()))
            && (this.getKey2() == null ? other.getKey2() == null : this.getKey2().equals(other.getKey2()))
            && (this.getFileSize() == null ? other.getFileSize() == null : this.getFileSize().equals(other.getFileSize()))
            && (this.getUploadPath() == null ? other.getUploadPath() == null : this.getUploadPath().equals(other.getUploadPath()))
            && (this.getOriginalFilename() == null ? other.getOriginalFilename() == null : this.getOriginalFilename().equals(other.getOriginalFilename()))
            && (this.getUploadFilename() == null ? other.getUploadFilename() == null : this.getUploadFilename().equals(other.getUploadFilename()))
            && (this.getUploadConfigId() == null ? other.getUploadConfigId() == null : this.getUploadConfigId().equals(other.getUploadConfigId()))
            && (this.getExtension() == null ? other.getExtension() == null : this.getExtension().equals(other.getExtension()))
            && (this.getUuid() == null ? other.getUuid() == null : this.getUuid().equals(other.getUuid()))
            && (this.getFileStatus() == null ? other.getFileStatus() == null : this.getFileStatus().equals(other.getFileStatus()))
            && (this.getPermission() == null ? other.getPermission() == null : this.getPermission().equals(other.getPermission()))
            && (this.getDownloadNum() == null ? other.getDownloadNum() == null : this.getDownloadNum().equals(other.getDownloadNum()))
            && (this.getLookupNum() == null ? other.getLookupNum() == null : this.getLookupNum().equals(other.getLookupNum()))
            && (this.getUploadBy() == null ? other.getUploadBy() == null : this.getUploadBy().equals(other.getUploadBy()))
            && (this.getUploadTime() == null ? other.getUploadTime() == null : this.getUploadTime().equals(other.getUploadTime()))
            && (this.getDeleteBy() == null ? other.getDeleteBy() == null : this.getDeleteBy().equals(other.getDeleteBy()))
            && (this.getDeleteTime() == null ? other.getDeleteTime() == null : this.getDeleteTime().equals(other.getDeleteTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getKey1() == null) ? 0 : getKey1().hashCode());
        result = prime * result + ((getKey2() == null) ? 0 : getKey2().hashCode());
        result = prime * result + ((getFileSize() == null) ? 0 : getFileSize().hashCode());
        result = prime * result + ((getUploadPath() == null) ? 0 : getUploadPath().hashCode());
        result = prime * result + ((getOriginalFilename() == null) ? 0 : getOriginalFilename().hashCode());
        result = prime * result + ((getUploadFilename() == null) ? 0 : getUploadFilename().hashCode());
        result = prime * result + ((getUploadConfigId() == null) ? 0 : getUploadConfigId().hashCode());
        result = prime * result + ((getExtension() == null) ? 0 : getExtension().hashCode());
        result = prime * result + ((getUuid() == null) ? 0 : getUuid().hashCode());
        result = prime * result + ((getFileStatus() == null) ? 0 : getFileStatus().hashCode());
        result = prime * result + ((getPermission() == null) ? 0 : getPermission().hashCode());
        result = prime * result + ((getDownloadNum() == null) ? 0 : getDownloadNum().hashCode());
        result = prime * result + ((getLookupNum() == null) ? 0 : getLookupNum().hashCode());
        result = prime * result + ((getUploadBy() == null) ? 0 : getUploadBy().hashCode());
        result = prime * result + ((getUploadTime() == null) ? 0 : getUploadTime().hashCode());
        result = prime * result + ((getDeleteBy() == null) ? 0 : getDeleteBy().hashCode());
        result = prime * result + ((getDeleteTime() == null) ? 0 : getDeleteTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }
}